package com.mybook.app.request;

import com.mybook.app.core.BaseRequest;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created by hdl on 2017/10/27.
 */
public class SmsRequest extends BaseRequest {
    @NotNull
    @Pattern(regexp = "1[0-9]{10,10}")
    private String mobile;

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
